package com.steak.elasticsearch.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "order",type = "docs", shards = 1, replicas = 0)
public class Order {
    @Id
    private Integer orderNo;
    @Field(type = FieldType.Keyword)
    private String orderName;

    public Order() {
    }

    public Order(Integer orderNo, String orderName) {
        this.orderNo = orderNo;
        this.orderName = orderName;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }
}
